<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../Template/TemplateAccount.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">

    <ui:define name="content">
        <p:fieldset legend="FAQs">
            <h:form>
                <p:dataList var="faqs" value="#{fAQsBean.all}" type="none" paginator="true" rows="10" 
                            paginatorTemplate="{PreviousPageLink} {CurrentPageReport} {NextPageLink} {RowsPerPageDropdown}"
                            rowsPerPageTemplate="10,20,30">
                    <div style="margin-top: 10px;width: 100%;margin: 0 auto;height: 110px">
                        <div style="float: left;width: 100px;margin-right: 10px;margin-left: 10px">
                            <h:graphicImage url="./../Template/ImageNew/#{new.image}"/>
                        </div>
                        <div style="margin-left: 55px;margin-top: 10px;margin-bottom: 10px">
                            <h:link value="#{faqs.question}" style="font-size: 15px;font-weight: bolder;padding-left: 0px;padding-right: 5px;text-align: left"/>
                            <br/>
                            <h:outputText value="#{faqs.answer}" style="font-size: 12px;font-weight: normal;padding-left: 0px;padding-right: 5px;text-align: left"/>
                        </div>  
                    </div>
                </p:dataList>   
            </h:form>
        </p:fieldset>
    </ui:define>

</ui:composition>
